from math import gcd;
from functools import reduce
def lcm(a, b):
    return a*b//gcd(a,b)
#  print(reduce(lcm, range(1,11)))
print(reduce(lcm, range(1,21)))
